﻿#pragma once
#include <cstdio>

#ifdef _WIN32
#define snprintf_s(buffer, bufferSize, format, ...) sprintf_s(buffer, bufferSize, format, __VA_ARGS__)
#define vsnprintf_s(buffer, bufferSize, format, args) vsprintf_s(buffer, bufferSize, format, args)
#else
#include <cstdarg>
#include <cstring>
#define snprintf_s(buffer, bufferSize, format, ...) snprintf(buffer, bufferSize, format, __VA_ARGS__)
#define vsnprintf_s(buffer, bufferSize, format, args) vsnprintf(buffer, bufferSize, format, args)
#endif

namespace as
{
	namespace tools 
	{
		extern int GetLastError();
	}
}

